package com.assignwork.service;

import com.assignwork.dto.ShiftRuleDailyShiftSubmitDTO;
import com.assignwork.dto.ShiftRuleTimeSpaceSubmitDTO;
import com.assignwork.entity.ShiftRuleDailyShift;
import org.springblade.core.mp.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IShiftRuleDailyShiftService
 * @Description 班组生成规则班组信息
 * @Author dujianyu
 * @Date 2023/12/1 15:57
 */
public interface IShiftRuleDailyShiftService extends BaseService<ShiftRuleDailyShift> {

    /**
     * 根据规则Id删除班组信息
     * @param ruleId 规则ID
     * @return boolean
     * @author dujianyu
     * @since 2023/12/4 9:05
     */
    boolean removeSRDailyShiftsByRuId(Long ruleId);


    /**
     * 批量新增
     * @param dailyShifts 数据数组
     * @return boolean
     * @author dujianyu
     * @since 2023/12/4 9:21
     */
    boolean submitSRDailyShiftBatch(List<ShiftRuleDailyShiftSubmitDTO> dailyShifts);

    /**
     * 根据规则ID返回班组码表
     * @param ruleId 规则ID
     * @return Map<Integer, String>
     * @author dujianyu
     * @since 2023/12/5 10:51
     */
    Map<Integer, String> selectSRDailyShiftMapByRuleId(Long ruleId);
}
